package com.bc.mes.mbg.model.dv;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class DvMachineryType implements Serializable {
    @ApiModelProperty(value = "设备类型ID")
    private Long machineryTypeId;

    @ApiModelProperty(value = "设备类型编码")
    private String machineryTypeCode;

    @ApiModelProperty(value = "设备类型名称")
    private String machineryTypeName;

    @ApiModelProperty(value = "父类型ID")
    private Long parentTypeId;

    @ApiModelProperty(value = "所有父节点ID")
    private String ancestors;

    @ApiModelProperty(value = "是否启用")
    private String enableFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "预留字段1")
    private String attr1;

    @ApiModelProperty(value = "预留字段2")
    private String attr2;

    @ApiModelProperty(value = "预留字段3")
    private Integer attr3;

    @ApiModelProperty(value = "预留字段4")
    private Integer attr4;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getMachineryTypeId() {
        return machineryTypeId;
    }

    public void setMachineryTypeId(Long machineryTypeId) {
        this.machineryTypeId = machineryTypeId;
    }

    public String getMachineryTypeCode() {
        return machineryTypeCode;
    }

    public void setMachineryTypeCode(String machineryTypeCode) {
        this.machineryTypeCode = machineryTypeCode;
    }

    public String getMachineryTypeName() {
        return machineryTypeName;
    }

    public void setMachineryTypeName(String machineryTypeName) {
        this.machineryTypeName = machineryTypeName;
    }

    public Long getParentTypeId() {
        return parentTypeId;
    }

    public void setParentTypeId(Long parentTypeId) {
        this.parentTypeId = parentTypeId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(String enableFlag) {
        this.enableFlag = enableFlag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1;
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2;
    }

    public Integer getAttr3() {
        return attr3;
    }

    public void setAttr3(Integer attr3) {
        this.attr3 = attr3;
    }

    public Integer getAttr4() {
        return attr4;
    }

    public void setAttr4(Integer attr4) {
        this.attr4 = attr4;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", machineryTypeId=").append(machineryTypeId);
        sb.append(", machineryTypeCode=").append(machineryTypeCode);
        sb.append(", machineryTypeName=").append(machineryTypeName);
        sb.append(", parentTypeId=").append(parentTypeId);
        sb.append(", ancestors=").append(ancestors);
        sb.append(", enableFlag=").append(enableFlag);
        sb.append(", remark=").append(remark);
        sb.append(", attr1=").append(attr1);
        sb.append(", attr2=").append(attr2);
        sb.append(", attr3=").append(attr3);
        sb.append(", attr4=").append(attr4);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}